﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;

namespace TestLogConsoleApp
{
    class TestConsoleLog
    {
        private readonly ILogger<TestConsoleLog> _logger;
        public TestConsoleLog(ILogger<TestConsoleLog> logger)
        {
            this._logger = logger;
        }

        public virtual void WriteLog()
        {
            _logger.LogDebug("Debug 测试1");
            _logger.LogWarning("Waring Log 测试2");
            _logger.LogError("Error ");
            _logger.LogCritical("Loging Critical 日志。。。");
            
        }
    }
}
